CHALLENGE #2: This code can't be refactored with a Loop with Range. Follow these guidelines to simplify this code:

  • Use only one line that includes sprite = codesters.Sprite().
  • Use only five Glide To commands.
  • Add one Empty List and fill it with the necessary information.
  • Add one Loop through List.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)